package com.mew.chess.core.game.shbz.game.message;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ArtilleryMessage extends ZebraBaseMessage<ArtilleryMessage> {


    int seatNo;
    int[] artillerys;

    @Override
    public void write(ByteBuf b) {

        writeInt(b,seatNo);
        writeIntArray(b,this.artillerys);
    }

    @Override
    public ArtilleryMessage read(ByteBuf byteBuf) {
        return null;
    }
}
